from django.db import models

# Create your models here.


class FlowCases(models.Model):
    title = models.CharField(max_length=100)
    pre_condition = models.CharField(max_length=500)
    module = models.CharField(max_length=100)
    case_steps = models.CharField(max_length=500)
    expect_result = models.CharField(max_length=100)
    system = models.CharField(max_length=100)
    case_level = models.CharField(max_length=20, null=True)
    create_time = models.DateTimeField()
    real_result = models.CharField(max_length=500, null=True)
    remarks = models.CharField(max_length=500, null=True)
    page = models.CharField(max_length=50)
    creator = models.CharField(max_length=20)
    project_id = models.CharField(max_length=50)

    def __str__(self):
        return self.title
